home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / Expander / Expander Classes / CExpanderText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  1.3 KB  |  48 lines  |  [TEXT/KAHL]

  1. /***********************************************************************************
  2.     CExpanderText.h
  3.  
  4.     Copyright © 1994 B-Ray Software. All rights reserved.
  5.     Developed using Symantec C++ 7.0.2 and Symantec's TCL library.
  6.     Portions of this code courtesy Symantec, Inc.
  7.  
  8.     This code may be freely distributed as long as this notice remains. This code
  9.     may not be used in any commercial software without the consent of B-Ray Software.
  10.  
  11.     ---
  12.  
  13.     Header file for CExpanderText.cp
  14.  
  15. ***********************************************************************************/
  16. #pragma once
  17.  
  18.  
  19. #include "CExpanderPane.h"
  20.  
  21.  
  22. class CExpanderText : public CExpanderPane {
  23.  
  24. protected:
  25.     short            lineHeight, ascent;
  26.  
  27.     virtual void    CalcLineHeight( void );
  28.     virtual short    CalcFrameHeight( void );
  29.     virtual short    CalcFrameWidth( void );
  30.     virtual void    TextSizeChanged( void );
  31.  
  32. public:
  33.     TCL_DECLARE_CLASS
  34.  
  35.     CExpanderText();
  36.     CExpanderText( CView *anEnclosure, CBureaucrat *aSupervisor,
  37.                     short aWidth = 0, short aHeight = 0, short aHLoc = 0, short aVLoc = 0,
  38.                     SizingOption aHSizing = sizFIXEDSTICKY, 
  39.                     SizingOption aVSizing = sizFIXEDSTICKY );
  40.     virtual ~CExpanderText();
  41.  
  42.     virtual void    ParentMessage( long message, void *param );
  43.  
  44.     virtual void    PutTo( CStream &stream );
  45.     virtual void    GetFrom( CStream &stream );
  46. };
  47.  
  48.